; \startcases
> \NC x = a \NR[+]
> \NC y = b \NR[+]
> \stopcases\stopformula\stoptext
>
> This only prints (2) on the right of the whole cases system. If I use
> \placesubformula, the behavior remains exactly the same. It also yields
> the same outp
a\stoptext
This only prints (2) on the right of the whole cases system. If I use
\placesubformula, the behavior remains exactly the same. It also yields the
same output with live ConTeXt. The ConTeXt version I am using is 2018.01.19
13:42
Has there been a change in the behavior since the docu
\xrightarrow PM \NR[+]
\NC R_{PM} \NC = \NC \{ A, B, C, D, E\} \NR[+]
\stopalign
\stopformula
\framed{ok}
\subject{math - align - subformula}
Expected formular numbers: (6.1), (6.2) and (6.c) plus referece on (6.1) and (6.2):
\placesubformula
\startformula
\startalign[n=3, align={right,middle
is more intuitive during the writing.
Also. this way the commands:
placesubformula
placenamedformula
placenamedsubformula
startstopsubformulas
subformulanumber
will become needless.
For the why and examples please look at:
http://wiki.contextgarden.net
Hi Aditya,
It seems that numbering subformulas as described in your « My Way » magazine
entitled « Using \startalign » does not work with mkiv.
The following minimal example taken from page 6 of the above mentioned manual,
does not result in what is described there:
\starttext
\placesubformula
is described there:
\starttext
\placesubformula
\startformula \startalign
\NC a_1 x + b_1 y \NC = c_1 \NR[eq:c][c]
\NC a_2 x + b_2 y \NC = c_2 \NR[eq:d][d]
\stopalign \stopformula
(\in[eq:c]) and (\in[eq:d]) form a linear system of equations.
\stoptext
Is this a known bug?
I can confirm the bug
\placesubformula
\startformula \startalign
\NC a_1 x + b_1 y \NC = c_1 \NR[eq:c][c]
\NC a_2 x + b_2 y \NC = c_2 \NR[eq:d][d]
\stopalign \stopformula
(\in[eq:c]) and (\in[eq:d]) form a linear system of equations.
\stoptext
Is this a known bug?
I can confirm the bug. Using \startsubformulas does
Dear all,
I am having problems with subformulas.
The following example does not display a subnumber (i.e. I get (1) and (2)
instead of (1a) and (1b)):
% start example
\starttext
% from
% does not display subformula numbers
\placesubformula
\startformula \startalign
of (1a) and (1b)):
% start example
\starttext
% from
% does not display subformula numbers
\placesubformula
\startformula \startalign
\NC a_1 x + b_1 y \NC = c_1 \NR[+][a]
\NC a_2 x + b_2 y \NC = c_2 \NR[+][b]
\stopalign \stopformula
% stop example
as
a_1 = (1,0,0)(1a)
a_2 = (0,1,0)(1b)
a_3 = (0,0,1)(1c)
and then reference them as equation (1).
The example from Aditya's document says the following:
\placesubformula
\startformula \startalign
\NC a_1 x + b_1 y \NC = c_1 \NR[+][a]
\NC a_2 x + b_2 y \NC = c_2 \NR[+][b]
\stopalign
On 30-11-2010 8:10, Wolfgang Schuster wrote:
Hi Hans,
a fix for strc-mat.mkiv
\unexpanded\def\placeformula
- {\doglobal\settrue\insideplaceformula
+ {\global\settrue\insideplaceformula
\settrue\incrementformulanumber
\dodoubleempty\doplaceformula}
\unexpanded\def\placesubformula
Hi Hans,
a fix for strc-mat.mkiv
\unexpanded\def\placeformula
- {\doglobal\settrue\insideplaceformula
+ {\global\settrue\insideplaceformula
\settrue\incrementformulanumber
\dodoubleempty\doplaceformula}
\unexpanded\def\placesubformula
- {\doglobal\settrue\insideplacesubformula
+ {\global
\placesubformula
\startformula
\startalign[n=3, align={right,middle,left}]
\NC PM \xrightarrow \NC R_{PM} \NC \xrightarrow PM \NR[gleichung1a][.1]
\NC R_{PM} \NC = \NC \{ A, B, C, D, E\} \NR[gleichung1b][.2]
\stopalign
\stopformula
Does not work: no subformula numbers
\placesubformula
\startformula
in mkii
\placesubformula \NR[+] - mkii mkiv, but (1.name) as number
\placeformula \NR[+] - works in mkii and mkiv, but (1.name) as number
I have a real problem to transform my formula from mkii to mkiv. In mkii I
had following:
\placesubformulawithnumber[gleichung1]
\startformula
\startalign[n=3
in mkii
\placenamedsubformula - works only in mkii
\placesubformula \NR[+] - mkii mkiv, but (1.name) as number
\placeformula \NR[+] - works in mkii and mkiv, but (1.name) as number
- can you post your examples (so that they can be added to the test suite)
- can you also test
pointers on how to fix this.
A cleaner way to achieve the same output is
\starttext
\startsubformulas[eq:sub]
\placesubformula
Sorry, this should have been \placeformula.
\startformula \startalign
\NC a_1 x + b_1 y \NC = c_1 \NR[eq:1]
\NC a_2 x + b_2 y \NC = c_2 \NR[eq:2]
\stopalign
[formula]
\iffirstargument
\rawreference{for}{#1}{\composedsectionnumber}
\fi\placesubformula}
\placesubformulawithnumber
\startformula \startalign
\NC a_1 x + b_1 y \NC = c_1 \NR[+][a]
\NC a_2 x + b_2 y \NC = c_2 \NR[+][b]
\stopalign \stopformula
%%% end
be removed.
I wonder if anyone can give pointers on how to fix this.
A cleaner way to achieve the same output is
\starttext
\startsubformulas[eq:sub]
\placesubformula
\startformula \startalign
\NC a_1 x + b_1 y \NC = c_1 \NR[eq:1]
\NC a_2 x + b_2 y \NC = c_2 \NR[eq:2]
\stopalign \stopformula
, the \makesectionnumber and \rawreference macros have be
removed.
I wonder if anyone can give pointers on how to fix this.
A cleaner way to achieve the same output is
\starttext
\startsubformulas[eq:sub]
\placesubformula
Sorry, this should have been \placeformula.
\startformula \startalign
\NC a_1 x + b_1 y
\placelistofsynonyms
\placelocalfootnotes[settings]
\placelogos[names]
\placeongrid[settings{text}
\placeontopofeachother{text}{text}
\placereferencelist[names]
\placeregister[name][settings]
\placeregister[settings]
\placerule[name]
\placesidebyside{text}{text}
\placesubformula[references]{text
) \ms e^{-
\displaystyle in\frac{\pi}{L} x } dx
\stopformula
Formula number is not right aligned with the previous formula
\placesubformula
\startformula
\startalign[n=2,m=2,distance=2em]
%\startalign[n=3]
\NC f(x) \NC = \frac{1}{2\pi} \int\limits_{-\infty}^{+\infty} g(y) \ms
e^{i y x} \ms dy \NC (x
}^{+\infty} c_{n} e^{\displaystyle i n
\frac{\pi}{L} x} \quad \text{,} \quad c_{n} = \frac{1}{2L}
\int\limits_{-L}^{L} f(x) \ms e^{- \displaystyle in\frac{\pi}{L} x }
dx
\stopformula
Formula number is not right aligned with the previous formula
\placesubformula
\startformula
\startalign[n=2,m=2
}
\placenamedformula
[eq:well_known]
{Well known equalities}
\startformula
\stopformula
\placesubformula[eq:first]{a}
\startformula
1+0=1
\stopformula
\placesubformula[eq:second]{b}
\startformula
Kingdom of Great Britain and
Northern
Ireland}
\starttext
\placelist[formula]
\chapter{Math formulae}
\placenamedformula
[eq:well_known]
{Well known equalities}
\startformula
\stopformula
\placesubformula[eq:first
]\chapter{Math formulae} \placenamedformula [eq:well_known] {Well known equalities} \startformula \stopformula \placesubformula[eq:first]{a}
\startformula 1+0=1 \stopformula \placesubformula[eq:second]{b} \startformula 1+1=2 \stopformula\chapter{Weather in the \UK}\dorecurse {2} {\input dawkins \par
\placelist[formula]
\chapter{Math formulae}
\placenamedformula
[eq:well_known]
{Well known equalities}
\startformula
\stopformula
\placesubformula[eq:first]{a}
\startformula
1+0=1
\stopformula
\placesubformula[eq:second]{b}
\startformula
On Tue, 8 Aug 2006, Aditya Mahajan wrote:
[ A long list of feature requests ]
Here is something that was not in my original list: subformula
numbering.
Context allows one to number subformulas by specifying the subnumber.
Thus, if I want (1a) (1b) and (1c), I need to do
\placesubformula
\incrementnumber[\v!formula]
\fi\placesubformula}
\protect
\starttext
%% \incrementnumber[formula]
%% \placesubformula
\placesubformulawithnumber[eqn1] %I need to think of a smaller name
\startformula
\startalign
\NC div \vec{E} \NC = \epsilon_{0}^{-1} \rho \NR[eqn1:A][a]
\NC rot \vec{E} \NC = 0
{\s!for}{#1}{\composedsectionnumber}
\else
\incrementnumber[\v!formula]
\fi\placesubformula}
\protect
\starttext
%% \incrementnumber[formula]
%% \placesubformula
\placesubformulawithnumber[eqn1] %I need to think of a smaller name
\startformula
\startalign
\NC div \vec{E
like
\starttext
\incrementnumber[formula]
\placesubformula
\startformula
\startalign
\NC div \vec{E} \NC = \epsilon_{0}^{-1} \rho \NR[eqn1:A][a]
\NC rot \vec{E} \NC = 0 \NR
\NC div \vec{B} \NC = 0 \NR[eqn1:B][b]
\NC rot \vec{B} \NC = \mu_{0} \vec{j} \NR
\stopalign
\stopformula
See \in[eqn1
30 matches
Mail list logo